home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / readlink.z / readlink
Text File  |  1998-10-20  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4. RRRREEEEAAAALLLLPPPPAAAATTTTHHHH((((1111))))                                                        RRRREEEEAAAALLLLPPPPAAAATTTTHHHH((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      readlink - prints the value of a symbolic link
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ////uuuussssrrrr////lllliiiibbbb////ddddeeeesssskkkkttttoooopppp////rrrreeeeaaaaddddlllliiiinnnnkkkk _p_a_t_h
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _r_e_a_d_l_i_n_k provides command-line access to the readlink(2) system call.
  16.      _r_e_a_d_l_i_n_k uses the readlink(2) system call to print the value of a
  17.      symbolic link to stdout.  If _p_a_t_h is not a symbolic link, _p_a_t_h is printed
  18.      ant a non-zero exit status is returned.
  19.  
  20.      The _r_e_a_d_l_i_n_k command is intended for use by developers who need access to
  21.      symbolic link contents for their FTR rules.
  22.  
  23. EEEEXXXXAAAAMMMMPPPPLLLLEEEE
  24.      Suppose that /usr/people/guest is a symlink to
  25.      /otherdisk/usr/people/guest and that the current working directory is
  26.      /usr/people.
  27.  
  28.      % /usr/lib/desktop/readlink /usr/people/guest
  29.      /otherdisk/usr/people/guest
  30.      % echo $status
  31.      0
  32.  
  33.      % /usr/lib/desktop/readlink guest
  34.      /otherdisk/usr/people/guest
  35.      % echo $status
  36.      0
  37.  
  38.      % /usr/lib/desktop/readlink aBadFileName
  39.      aBadFileName
  40.      % echo $status
  41.      255
  42.  
  43. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  44.      readlink(2), realpath(1)
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.